package dataPersistence.dao;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

import common.Result;
import common.ValueResult;

import dataPersistence.dto.ProductContainerDTO;
import dataPersistence.dto.StorageUnitDTO;

public class StorageUnit_Serial_DAO implements IStorageUnitDAO
{

	@Override
	public Result read(StorageUnitDTO dto)
	{
		return add(dto);

	}

	@Override
	public Result add(ProductContainerDTO dto)
	{
		Result result = new Result();
		result.setStatus(true);
		return result;

	}

	@Override
	public Result update(ProductContainerDTO dto)
	{
		return add(dto);

	}

	@Override
	public Result delete(ProductContainerDTO dto)
	{
		return add(dto);

	}

	@Override
	public ValueResult<ArrayList<ProductContainerDTO>> getChildren(String string)
	{
		ValueResult<ArrayList<ProductContainerDTO>> result = new ValueResult<ArrayList<ProductContainerDTO>>();
		result.setStatus(true);
		result.setValue( new ArrayList<ProductContainerDTO>());
		return result;
	}

	@Override
	public ValueResult<Set<StorageUnitDTO>> getAllStorageUnits()
	{
		ValueResult<Set<StorageUnitDTO>> result = new ValueResult<Set<StorageUnitDTO>>();
		result.setStatus(true);
		result.setValue(new HashSet<StorageUnitDTO>());
		return result;
	}

}
